package cn.lzj.mapper;

import cn.lzj.pojo.Collect;
import cn.lzj.pojo.HistoryRecord;
import cn.lzj.pojo.ProductBase;
import cn.lzj.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface HistoryRecordMapper {

    List<HistoryRecord> MyHistoryRecord(@Param("userId") Integer userId,@Param("history") String history);

    /*
    根据用户id获取产品id，同时获取产品浏览信息
     */
    HistoryRecord selectById(@Param("historyId") Integer historyId);


    int insertHistory(@Param("user") User user,@Param("product") ProductBase product,@Param("recordDate") String recordDate);

}
